home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7130 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: god.bel.alcatel.be!nlev00!barnhoorn
  2. From: barnhoorn@nlev00 ()
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Messages vs. Semaphores for external clocking
  5. Date: 10 Apr 1996 07:02:51 GMT
  6. Organization: Alcatel Bell
  7. Distribution: world
  8. Message-ID: <4kfmes$lle@btmpjg.god.bel.alcatel.be>
  9. References: <4ju349$r1e@sparky.navsea.navy.mil> <4jvrqs$hk0@btmpjg.god.bel.alcatel.be> <heinz.17rm@hwg.muc.de>
  10. Reply-To: barnhoorn@nlev00 ()
  11. NNTP-Posting-Host: 138.203.178.61
  12. X-Newsreader: mxrn 6.18-10
  13.  
  14.  
  15. In article <heinz.17rm@hwg.muc.de>, heinz@hwg.muc.de (Heinz Wrobel) writes:
  16. >barnhoorn@nlev00 wrote:
  17. >>Use global data, which your subtask fills with the timer-values,
  18. >>and the parent process reads. Disable() and Enable() multitasking
  19. >>when performing such a critical action (reading or writing from the
  20. >>global data). No message port or semaphore needed.
  21. >
  22. >Obviously this is the dumb c0d3r non multitasking solution, i.e.
  23. >plain stupid.
  24. >
  25. .not so obviously. When you have two tasks, and one of them is
  26. collecting data from some source, and the other one needs this data
  27. with regular intervals, I don't see a more easier way to do this
  28. then by using global data and disable/enable multitasking. It is
  29. a very multitasking-friendly solution, and there is nothing
  30. 'dumb c0d3r' (whatever that may be) about it.
  31.  
  32. -- 
  33. ---------------------------------------------------------------------------
  34. Jaco Barnhoorn               barnie@xs4all.nl
  35. Software Test Engineer       barnhoorn%nlev00@btmv56.se.bel.alcatel.be
  36. Alcatel Telecom Systems
  37. Rijswijk, The Netherlands
  38. ---------------------------------------------------------------------------
  39.